package best.driver.android.Beans;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by xiangxuefeng on 15/12/02.
 */
public class TradeType {

    public static final String ORDER_ONLINE = "ORDER_ONLINE";
    public static final String ORDER_CASH = "ORDER_CASH";
    public static final String WITHDRAWALS = "WITHDRAWALS";
    public static final String SUBSIDY = "SUBSIDY";
    public static final String FINE = "FINE";
    private static TradeType mTradeType;
    private static Map<String, String> mTradeTypeMap = new HashMap<String, String>();
    public static TradeType getInstance() {
        if(mTradeType != null) {
            return  mTradeType;
        } else {
            mTradeType = new TradeType();
            generateOrderStatusMap();
            return mTradeType;
        }
    }

    public Map<String, String> getPayTypeMap() {
        getInstance();
        return mTradeTypeMap;
    }

    private static void generateOrderStatusMap() {
        mTradeTypeMap.clear();
        mTradeTypeMap.put(ORDER_CASH, "订单收入");
        mTradeTypeMap.put(ORDER_ONLINE, "订单收入");
        mTradeTypeMap.put(WITHDRAWALS,"提现");
        mTradeTypeMap.put(SUBSIDY,"补贴");
        mTradeTypeMap.put(FINE,"罚款");
    }


}
